import React, { useState } from "react";
import styles from "@/assets/styles/app.module.scss";

const Counter = () => { 
  const [count, setCount] = useState(0);
  return (
    <div>
      <p>Count: { count }</p>
      <button
        className={ styles.button}
        onClick={() => setCount(count + 1)}>
        增加
      </button>

      <button
        className={ styles.button}
        onClick={() => setCount(count - 1)}>
        减少
      </button>
    </div>
  );
}

export default Counter;
